home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ Active Desktop 2.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  1.3 KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Desktop\Active Desktop"
  5. "NAME"="Active Desktop General Options"
  6. "VERSION"="1.12"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable changing Wallpaper"
  9. "DESCRIPTION 1"="This plugin allows you to change some settings for Active Desktop."
  10. "DESCRIPTION 2"=""
  11. "AUTHOR"="Ojatex@aol.com"
  12. "CONTACTURL"="http://members.aol.com/ojatex/"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15. "COMMENT 2"="Does anybody outside of Redmond really use Active Desktop?"
  16.  
  17. 'note: 0 = disable restriction, 1 = enable restriction
  18.  
  19.  
  20. Sub Plugin_Initialize 
  21.  
  22.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoChangingWallpaper")
  23.  if i=0 or IsEmpty(i) then SetUIElement 1,true
  24.  
  25.  
  26.  
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32.  
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  
  36.  
  37.  b=GetUIElement(1)
  38.  if b=false then
  39.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoChangingWallpaper","1",2)
  40.  else
  41.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoChangingWallpaper","0",2)
  42.  end if
  43.  
  44.  Call Logoff
  45. End Sub
  46.  
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.  
  51.  
  52.  
  53.